-- GENERATED SPELL FOR [Mag'har Grunt] --


function spell0_16846(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(3019,pUnit)
pUnit:RegisterEvent('Sorts_16846', 15000, 1)
end

function Sorts_16846(pUnit, Event)
local choix_sorts_16846 = math.random(0, 0)
if choix_sorts_16846 == 0 then
pUnit:RegisterEvent('spell0_16846', 1, 1)
end
end

function mob16846_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16846', math.random(1500, 3000), 1)
end

function mob16846_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16846_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16846_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16846, 1, 'mob16846_Action')
RegisterUnitEvent(16846, 2, 'mob16846_Leave')
RegisterUnitEvent(16846, 3, 'mob16846_Kill')
RegisterUnitEvent(16846, 4, 'mob16846_Die')
